package org.example.student_dormitory.dao;

import org.example.student_dormitory.entity.Admin;
import org.example.student_dormitory.entity.Building;
import org.example.student_dormitory.entity.Dormitory;

import java.util.List;

public interface DormitoryDao extends BaseDao{
    //加载楼栋信息数据
    public List<Building> selectBuildings();
    //根据楼栋id和宿舍号拆查询数据
    public boolean selectByBuildingIdAndName(String name, int buildingId);

    public boolean insertDormitory(Dormitory dormitory);

    public boolean update(Dormitory dormitory);

    public Boolean deleteById(int id);
}
